import { defHttp } from '/@/utils/http/axios';

enum Api {
  inventorylist = '/inventory/inventorylist',
  abnomalList = '/inventory/abnomalList',
  departmentlist = '/inventory/departmentlist',
  assetlist = '/inventory/assetlist',
}
/**
 * 列表接口
 * @param params
 */
export const inventorylist = (params) => defHttp.get({ url: Api.inventorylist, params });
/**
 * 列表接口
 * @param params
 */
export const abnomalList = (params) => defHttp.get({ url: Api.abnomalList, params });
/**
 * 待办事项统计接口
 * @param params
 */
export const departmentlist = (params) => {
  return defHttp.get({ url: Api.departmentlist, params });
};
/**
 * 统计饼图接口
 * @param params
 */
export const assetlist = (params) => {
  return defHttp.get({ url: Api.assetlist, params });
};
